package cn.bdqn.study_method_param;

//计算成绩的测试
public class CalcScoreTest {
    public static void main(String[] args){
        CalcScore cs = new CalcScore();

        //int[] socres = new int[]{66,77,88,46,97};
        //假设已有五名同学的成绩
        int[] scores = {66,88,98,57,76};

        int max = cs.getMax(scores);
        System.out.println("最高分是："+max);
        int min = cs.getMin(scores);
        System.out.println("最低分是："+min);

        double avg = cs.calcAvg(scores);
        System.out.println("平均值是："+avg);

    }
}
